<?php

use CodeIgniter\Router\RouteCollection;

/**
 * @var RouteCollection $routes
 */
$routes->get('/', 'Home::index');
$routes->get('hockey', 'Hockey::index');
$routes->get('/hockey/showme/(:any)', 'Hockey::showme/$1');
$routes->get('/image/(:any)', 'Media::image/$1');
$routes->get('home', 'Home::index');
$routes->get('hockey', 'Hockey::index'); 
$routes->get('hockey/showme/(:num)', 'Hockey::showme/$1');  // 显示英雄详情 (GET)
$routes->get('hockey/editpage/(:num)', 'Hockey::edit/$1');  // 更新英雄信息 (POST)
$routes->post('hockey/update/(:num)', 'Hockey::update/$1');